#ifndef OGREMHX_H
#define OGREMHX_H

#include "Types.h"
#include "File.h"
#include <string>
#include <OgreMesh.h>
#include <OgreManualObject.h>

class OgreMHX
{
public:
	typedef std::map<std::string, Ogre::MeshPtr> OgreMeshes;

	OgreMHX(std::string fileName);
	Ogre::MeshPtr getOgreMesh(std::string meshName);
	//const MHX::S& getMeshNames() const;

	static Ogre::ManualObject *MHXToObject(const MHX::Mesh &m);
	static Ogre::MeshPtr MHXToMesh(const MHX::Mesh &mesh);

private:
	MHX::File      file;

	OgreMeshes     ogreMeshes;
};

#endif